/*
 * @Author: zhangzibo 
 * @Date: 2019-01-20 17:29:11 
 * @Last Modified by: zhangzibo
 * @Last Modified time: 2019-01-20 17:36:22
 */

const http = require('http')

let server = http.createServer((req, res) => {
  let str = ''
  req.on('data', data => {
    str += data
  })
  req.on('end', () => {
    console.log('object', str);
    res.write(str)
    res.end()
  })
})

server.listen(3333)